package com.lmt_12;

import sun.util.resources.LocaleData;

import java.io.File;
import java.time.LocalDate;
import java.util.Locale;

public class FileTest1 {
    public static void main(String[] args) {
        File file = new File("/home/rivotek/桌面/lmt/xxx.rules");
        long length = file.length();
        System.out.println(file.exists());
        System.out.println(file.isFile());
        System.out.println(length);
        File f = new File("/home/rivotek/桌面/lmt");
        System.out.println(f.length());
        System.out.println(f.isFile());
        System.out.println(f.isDirectory());
        File[] files = f.listFiles();
        for (File file1 : files) {
            System.out.println(file1);
        }
        System.out.println(f.getName());
        System.out.println(f.lastModified());
        System.out.println(f.getAbsoluteFile());
        System.out.println(f.getPath());
    }
}
